package ootexception;
import util.*;

public class OOT_Exception extends Exception 
{

protected String xcpt_msg=null;
protected String keyname=null;

  public OOT_Exception(Exception e,String new_keyname)
  {
     xcpt_msg=e.toString();
     keyname=new_keyname;
  }

  public OOT_Exception(String new_keyname)
  {  
     xcpt_msg=null;
     keyname=new_keyname;
  }
  
  public void setMsg(String msg)
  {
     xcpt_msg=msg;
  }

  public void setMsg(Exception e)
  {
     xcpt_msg=e.toString();
  }

  public String getMsg()
  {
     return xcpt_msg;
  }
 
  public String getKeyname()
  {
    Debug.println(keyname);
    return keyname;
  }
  
}

